package com.jnevision.laterule.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 迟到规则
 * </p>
 *
 * @author gavin
 * @since 2019-07-21
 */
@TableName("b_late_rule")
public class LateRule extends Model<LateRule> {
    private static final long serialVersionUID = 6323838168294582562L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 考勤组
     */
    @TableField("group_id")
    private Integer groupId;

    /**
     * 类型：0按次，1按时长
     */
    @TableField("model")
    private String model;

    /**
     * 金额
     */
    @TableField("money")
    private String money;

    @TableField("exempt")
    private String exempt; // 免除的处罚的规则

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LateRule{" + "id=" + id + ", groupId=" + groupId + ", model=" + model + ", money=" + money + "}";
    }

    public String getExempt() {
        return this.exempt;
    }

    public void setExempt(String exempt) {
        this.exempt = exempt;
    }
}